package com.fate.system.dto.login;

import com.fate.framework.annotation.CheckPhone;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class LoginDTO {
  @Schema(description = "手机号")
  @CheckPhone(message = "手机号格式不正确")
  @NotBlank(message = "手机号不能为空")
  private String phone;

  @Schema(description = "密码")
  @NotBlank(message = "密码不能为空")
  private String password;

  @Schema(description = "验证码")
//  @NotBlank(message = "验证码不能为空")
  private String code;
}
